package com.example.rabbitmq.controller.ack;

import com.example.rabbitmq.Constants;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController
//@RequestMapping("/producer")
//public class ProducerController {
//    @Autowired
//    private RabbitTemplate rabbitTemplate;
//    @RequestMapping("/ack")
//    public String ack() {
//        rabbitTemplate.convertAndSend(Constants.ACK_EXCHANGE,"ack","consumer ack mode test.....");
//        return "发送消息成功";
//    }
//}
